package shape;

public class Rectangle extends AbstractShape {
	double width;
	double height;
	public Rectangle(double w,double h,String n) {
		super(n);
		width=w;
		height=h;
		
	}

	public double area() {
		return width * height;
	}
}
